package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDO;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 楼栋房间对象 t_room
 * 
 * @author ruoyi
 * @date 2023-09-07
 */
@Data
@TableName("t_room")
public class Room extends BaseDO
{
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private Integer treeType = 3;
    /** 平台表单自增主键 */
    @TableId
    private Long ID;

    /** 租户ID */
    @Excel(name = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    /** 归属楼栋编号 */
    @Excel(name = "归属楼栋编号")
    @TableField("ld_id")
    private String ldId;

    /** 楼层 */
    @Excel(name = "楼层")
    @TableField("ld_lc")
    private String ldLc;

    /** 房间号 */
    @Excel(name = "房间号")
    @TableField("room_id")
    private String roomId;

    /** 建筑面积（㎡） */
    @Excel(name = "建筑面积")
    @JsonProperty("BuiltUpArea")
    private BigDecimal BuiltUpArea;

    /** 入住人数 */
    @Excel(name = "入住人数")
    @JsonProperty("UserNumber")
    private Long UserNumber;

    /** 用户编号 */
    @Excel(name = "用户编号")
    @JsonProperty("UserID")
    private String UserID;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @JsonProperty("TerminalID")
    private String TerminalID;

    /** 设备类型1-大表、2-小表 */
    @Excel(name = "设备类型1-大表、2-小表",readConverterExp = "1=大表,2=小表")
    @JsonProperty("TerminalType")
    private Integer TerminalType;

    @Excel(name = "门牌号")
    private String roomName;

    @TableLogic
    @JsonProperty("DeleteMark")
    private Integer DeleteMark;

    @TableField(exist = false)
    @Excel(name = "楼栋名称")
    private String ldName;

    @TableField(exist = false)
    private String oldTerminalId;

    @TableField(exist = false)
    private String newTerminalId;

    @TableField(exist = false)
    private BigDecimal OldSettlementReading;

    @TableField(exist = false)
    private String Operator;

    @TableField(exist = false)
    private String changeTerminalRemark;

    @TableField(exist = false)
    private String oldUserId;

    @TableField(exist = false)
    private String newUserId;

    //归属水司
    @TableField(exist = false)
    private String belongDepartment;

    @TableField(exist = false)
    private String treeAreaCode;

    @TableField(exist = false)
    private String treeLdId;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userPhone;

    @TableField(exist = false)
    private String userCode;

    @TableField(exist = false)
    private String userAddress;

    @TableField(exist = false)
    @Excel(name = "区域编码")
    private String areaCode;

    @TableField(exist = false)
    private String areaName;

}
